//**********************************************************************************
//  PP2_12.java         Author:Tang Caiming
//
//  Enter an integer as the length of the square and then output the perimeter
//  and area of the square.
//**********************************************************************************

import java.util.Scanner;

public class PP2_12
{
   public static void main(String[] args)
   {
      Scanner scan = new Scanner(System.in);

      int side,perimeter,acreage;
      
      System.out.println("输入正方形的边长:");
      side = scan.nextInt();

      perimeter = 4 * side;
      acreage = side * side;

      System.out.println("周长:" + perimeter);
      System.out.println("面积:" + acreage);
   }
}
